/*
 * jiyan1
 */
package com.jiyan.sample.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

import com.rzhkj.core.base.BaseMybatisDAO;
import com.rzhkj.core.base.BaseMybatisSVImpl;

import com.jiyan.sample.facade.SampleSV;
import com.jiyan.sample.dao.SampleDAO;
import com.jiyan.sample.entity.Sample;


/**
 * 样品
 * @author jiyan
 */
@Component
@Service
public class SampleSVImpl extends BaseMybatisSVImpl<Sample,Long> implements SampleSV{


	@Resource
	private SampleDAO sampleDAO;

    @Override
    protected BaseMybatisDAO getBaseMybatisDAO(){
		return sampleDAO;
	}


	/**
	 * 加载对象样品 通过code
	 * @param code 样品编码
	 * @return Sample
	 */
     @Override
     public Sample loadByCode(java.lang.String code) {
		return sampleDAO.loadByCode(code);
	 }

     /**
      * 删除对象样品
	   * @param id id* @param code 样品编码
      */
	 @Override
     public void delete(java.lang.Long id,java.lang.String code) {
		sampleDAO.delete(id,code);
	 }



}